package com.wwfish.cmsui.modules.channel.client;

import com.nexustar.gwt.dashboard.client.MenuBuilder;
import com.nexustar.gwt.dashboard.client.MenuModel;
import com.nexustar.gwt.dashboard.client.PageModel;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Tom
 * Date: 2010-8-2
 * Time: 16:56:57
 * To change this template use File | Settings | File Templates.
 */
public class MenuImpl implements MenuBuilder {
    public List<MenuModel> getMenu() {
        MenuModel menu = new MenuModel("内容管理");
        menu.setIndex(1);
        menu.setPages(getPages());
        List result = new ArrayList();
        result.add(menu);
        return result;
    }

    private List getPages() {
        List r = new ArrayList();
        PageModel channel = new PageModel();
        channel.setPageTitle("栏目管理");
        channel.setPageId(ChannelManagePage.class.getName());
        r.add(channel);
        return r;
    }

    public void cacheModelData() {
        //To change body of implemented methods use File | Settings | File Templates.
    }
}
